package cn.uin.api;

import cn.uin.api.dto.request.family.CreateFamilyRequestDTO;
import cn.uin.api.dto.response.family.UserFamilyInfoResponse;
import cn.uin.api.response.Response;
import org.springframework.ui.Model;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

/**
 * @ClassName IFamilyService
 * @Description:认证服务接口
 * @Author: Administrator
 * @CreateDate: 2025/11/11 17:37
 * @Version: 1.0
 */
public interface IIndexService {

	/**
	 * 获取当前用户家庭信息
	 * @param userId
	 * @return
	 */
	Response<UserFamilyInfoResponse> queryUserFamilyInfo(Long userId);

	/**
	 * 通过邮箱地址邀请成员进入家庭
	 * @param family
	 * @param email
	 * @return
	 */
	Response<Boolean> inviteToFamily(Long family, String email);

	/**
	 * 创建家庭
	 * @param createFamilyRequestDTO
	 * @return
	 */
	Response<Boolean> createFamily(CreateFamilyRequestDTO createFamilyRequestDTO);

}
